package com.tbit.main.pojo;

import com.tbit.main.util.DateTimeUtil;
import lombok.Data;

import java.text.ParseException;

/**
 * @author LMY
 * @create 2021-01-08 15:46
 * 清洁车
 */
@Data
public class MachineCleanLog {

    //清洁车id
    private Integer machineCleanLogId;
    //运营区域id
    private Integer accountId;
    //设备id
    private Integer machineId;
    //车辆编码
    private String userCode;
    //设备编号
    private String machineNO;
    //运维人员id
    private Integer accountUserId;
    //运维人员姓名
    private String userName;
    //开始时间
    private String startTime;
    //开始时间戳
    private Long startTimestamp;
    //结束时间
    private String endTime;
    //结束时间戳
    private Long endTimestamp;
    //操作前图片
    private String beforeImageIds;
    //操作后图片
    private String afterImageIds;
    //是否有效
    private Integer isValid;
    //备注
    private String remark;
    //图片
    private String imageIds;
    //分区id
    private Integer regionId;

    public void setStartTimestamp(String startTime) throws ParseException {
        this.startTimestamp = DateTimeUtil.getTimestamp(startTime);
    }

    public void setEndTimestamp(String endTime) throws ParseException {
        this.endTimestamp = DateTimeUtil.getTimestamp(endTime);
    }

}
